package com.tencent.txcc.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.tencent.txcc.domain.Integral;
import com.tencent.txcc.mapper.IntegralMapper;
import com.tencent.txcc.service.IIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author director
 * @since 2022-10-04
 */
@Service
public class IntegralServiceImpl extends ServiceImpl<IntegralMapper, Integral> implements IIntegralService {

    @Autowired
    private IntegralMapper integralMapper;

    @Override
    public Integer getIntegralByUserId(Long user_id) {
        Integer integral = integralMapper.getIntegralByUserId(user_id);
        return integral;
    }
}
